package test.jvm;

/**
 * @author yachao.guo
 * @date 2019-05-31 16:02
 */
public class Persion {


    public static void h1(){
        System.out.println("persion method:h1");
    }
    public void h2(){
        System.out.println("persion method:h2");
    }

    public static void main(String[] args) {
        Persion man = new Man();
        man.h2();
        Man.h1();
    }
}
class Man extends Persion{

    public static void h1(){
        System.out.println("Man method:h1");
    }

    @Override
    public void h2() {
        System.out.println("Man method:h2");
    }
}
